project(Kernel)

if (POLICY CMP0091)
    cmake_policy(SET CMP0091 NEW)
endif (POLICY CMP0091)

add_library(Kernel SHARED
        Kithara.cpp
        Kernel.cpp
        SharedData.h
)

if (WIN32)
    set_target_properties(Kernel PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)

    target_link_libraries(Kernel PUBLIC
            ${KRTS_LIB}
    )
endif ()

if (MSVC)
    set_property(TARGET Kernel PROPERTY
            MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif ()